package com.yuchen.ishop.web.admin;

import com.yuchen.ishop.web.BaseAction;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * @author Jack Q
 * 登录
 */
@Controller
@RequestMapping(value = "/admin")
public class LoginAction extends BaseAction{

    private final static Logger LOG = Logger.getLogger(LoginAction.class);

    @RequestMapping(value = "/login")
    public String login(String username, String password)throws Exception {
        return "redirect:/admin/welcome.do";
    }

    @RequestMapping(value = "/welcome")
    public String welcome()throws Exception {
        return "admin/index";
    }

}
